//
//  RankData.m
//  WuLi
//
//  Created by Gollum on 16/09/02
//  Copyright (c) Gollum. All rights reserved.
//

#import "RankData.h"
#import "RankNewsimageinfolist.h"

@implementation RankData

+ (NSDictionary *)objectClassInArray{
    return @{@"newsImageInfoList" : [RankNewsimageinfolist class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray <RankNewsimageinfolist *> *news = [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"newsImageInfoList"]) {
        for (NSDictionary *dic in valueArray) {
            RankNewsimageinfolist *newsImage = [RankNewsimageinfolist modelWithDic:dic];
            [news addObject:newsImage];
        }
        _newsImageInfoList = news;
    }
    

}
@end
